package com.ttk.issuetracker.dao;

import java.util.List;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.ttk.issuetracker.model.Task;

@Repository("taskDao")
@Transactional
public class TaskDaoImpl extends GenericDaoImpl<Task, Integer> implements TaskDao {

	public TaskDaoImpl() {
		super(Task.class);
	}

	@Override
	public List<Task> findAll() {
		return em.createNamedQuery("Task.findAll").getResultList();
	}

}
